package com.lyf.design.practice.theory.create.builder;

/**
 * @author LYF
 * @date 2022/6/19
 */
abstract public class DataSource {
    private String name;
    private String type;
    private String className;
    private String url;
    private String username;
    private String password;

    public DataSource() {
    }

    public DataSource(String name, String type, String className, String url, String username, String password) {
        this.name = name;
        this.type = type;
        this.className = className;
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
